/*
 * $Id$
 */

package py.windmill.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author py
 */
public class Log {
    private Logger _log;

    public Log(final String name) {
        _log = LoggerFactory.getLogger(name);
    }

    /**
     * 
     * @param s 
     */
    public void debug(final String s) {
        if (_log.isDebugEnabled()) {
            _log.debug(s);
        }
    }

    public void debug(final String fmt, final Object... vals) {
        if (_log.isDebugEnabled()) {
            _log.debug(fmt, vals);
        }
    }
}
